package com.xueshishasha.oa.service;

import java.io.Serializable;
import java.util.Collection;
import java.util.List;

import org.hibernate.criterion.DetachedCriteria;

import com.xueshishasha.oa.model.Note;

public interface NoteService {

	public Note getInfo(String id);

	public void updateInfo(Note note);

	public Serializable save(Note note);

	public void delete(Note note);

	public List<Note> getAll();

	public Note getModelById(Serializable id);

	public List<Note> getModels(String hql, Object[] parameters);

	public void saveOrUpdate(Note note);

	public void saveOrUpdateAll(Collection<Note> collection);

	public void update(Note note);

	public List<Note> getByCriteria(DetachedCriteria dc);

}
